package com.lma.crm.post.dao.impl;

import java.util.List;

import com.lma.crm.base.impl.BaseDaoImpl;
import com.lma.crm.department.domain.CrmDepartment;
import com.lma.crm.post.dao.CrmPostDao;
import com.lma.crm.post.domain.CrmPost;

public class CrmPostDaoImpl extends BaseDaoImpl<CrmPost> implements CrmPostDao {

    @SuppressWarnings("unchecked")
    @Override
    public List<CrmPost> findAll(CrmDepartment crmDepartment) {
        
        List<CrmPost> allPost = this.getHibernateTemplate().find("from CrmPost where depId = ?", crmDepartment);
        return allPost;
    }

}